<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>DXBAY <s:text name="dxbay.page.title"/></title>
		<link type="text/css" rel="stylesheet" media="all" href="css/base.css" />
		<link rel="shortcut icon" href="images/shortcut.png" type="image/x-icon" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery.form.js"></script>
		<script type="text/javascript">
			var _gaq = _gaq || [];
			_gaq.push(['_setAccount', 'UA-28785793-2']);
			_gaq.push(['_trackPageview']);
			(function() {
				var ga = document.createElement('script'); 
				ga.type = 'text/javascript'; 
				ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			})();
		</script>
		<script type="text/javascript">
			function showResponse(responseText, statusText)  {    
			   alert('状态: ' + statusText + '\n 返回的内容是: \n' + responseText);    
			}
			$(document).ready(function(){				
				var options = {
					//target : '#output1', // 用服务器返回的数据 更新 id为output1的内容.   
					//beforeSubmit : showRequest, // 提交前   
					success : showResponse, // 提交后    
					dataType : 'json',
					timeout : 10000
				};
				$('#loginForm').ajaxForm(options);
			});
		</script>
	</head>
	<body>
		<!-- header -->		
		<div>
		</div>
		<!--end header-->
		<!-- content -->
		<div>
			<form action="jsonlogin.do" method="post" id="loginForm">
				姓名：<input type="text" id="username" name="username"/><br/>  
        		密码：<input type="password" id="password" name="password"/><br/>
        		姓名：<input type="text" id="username" name="username"/><br/>  
        		密码：<input type="password" id="password" name="password"/><br/>
        		<input type="submit" id="b01" value="提交"/>  
    		</form> 
		</div>
		<!-- end content -->
		<!--footer-->
		<div></div>
		<!--endfooter-->
	</body>
</html>